package com.songshuai.webapi.permission.client.hystrix;

import com.songshuai.webapi.permission.client.PermissionServiceClient;
import com.songshuai.webapi.permission.dto.request.UserDto;
import com.songshuai.webapi.permission.dto.response.RespDTO;
import org.springframework.stereotype.Component;

import java.security.Principal;


/**
 * Created by yubo on 2018/11/19.
 */
@Component
public class UserServiceHystrix implements PermissionServiceClient {

    @Override
    public RespDTO<UserDto> getUser(String token, String username) {
        System.out.println(token);
        System.out.println(username);
        return null;
    }

    @Override
    public Principal getPrincipal(String token) {
        return null;
    }
}
